﻿<Telerik:RadButton x:Class="Sunny.Controls.Button"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
			xmlns:Telerik="http://schemas.telerik.com/2008/xaml/presentation"
            mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300" DataContext="{Binding RelativeSource={RelativeSource Self}}">
	<!--<ContentPresenter>
		<ContentPresenter.ContentTemplate>
			<DataTemplate>
			</DataTemplate>
		</ContentPresenter.ContentTemplate>
	</ContentPresenter>-->
	<ContentControl>
		<ContentControl.Template>
			<ControlTemplate>
				<Grid DataContext="{TemplateBinding DataContext}">
					<Grid.ColumnDefinitions>
						<ColumnDefinition />
						<ColumnDefinition />
					</Grid.ColumnDefinitions>
					<Image Name="Image" Grid.Column="0" Stretch="None" Margin="5,0,5,0" VerticalAlignment="Center" Source="{Binding Icon}" />
					<TextBlock Name="TextBlock" Grid.Column="1" Margin="0,0,5,0" VerticalAlignment="Center" Text="{Binding Text}" />
				</Grid>
			</ControlTemplate>
		</ContentControl.Template>
	</ContentControl>
</Telerik:RadButton>